

import 'package:flutter/material.dart';

void main() {
  
 runApp(MaterialApp(
    home:  MyHome('123','我是内容哦') ,
  ));
}


// StatelessWidget 无状态组件
class MyHome extends StatelessWidget{

  MyHome(this.title,this.content);

  String title='moren';

  String content='content';

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
   return Scaffold(
      // 1.1 导航
      appBar: AppBar(
        backgroundColor: Colors.orange,
        title: Text(title),
      ),
      // 1.2 主体部分
      // 帮我调整 Text 的代码 实现 超出部分 ...
      body: Center(
        child: Container(
          width: 500,
          height: 200,
          color: Colors.lightBlue,
          padding: EdgeInsets.only(top:20,left: 30),
          // child: Image.network('https://yanxuan-item.nosdn.127.net/e529b6ab111ade9da9314867f98d360f.png'),
          child:Row(
            mainAxisAlignment: MainAxisAlignment.start,
            crossAxisAlignment: CrossAxisAlignment.center,// 交叉轴
            children: [
              // Image.network('https://yanxuan-item.nosdn.127.net/e529b6ab111ade9da9314867f98d360f.png',
              Image.asset('icons/bozai.png',
              width: 150,),
             const Column(
                mainAxisAlignment: MainAxisAlignment.spaceAround,
              children: [
                Text('我是标题',style: TextStyle(fontSize: 20,fontWeight: FontWeight.w900),),
                Text('我是内容',style: TextStyle(fontSize: 16,fontWeight: FontWeight.w900),),
              ],
             ),
           
            ],
          ),
        ),
      ))
      ;
  }
  
}


